package com.framework.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.dao.StarposMccDao;
import com.framework.entity.ter.StarposMcc;
import com.framework.service.StarPosMccService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("starPosMccService")
public class StarPosMCCServiceImpl extends ServiceImpl<StarposMccDao,StarposMcc> implements StarPosMccService {


    @Override
    public List<StarposMcc> getMccListById(Integer mccId) {
        if(mccId==null){
            mccId=0;
        }
        List<StarposMcc> list = baseMapper.selectList(new EntityWrapper<StarposMcc>()
                .eq("mcc_parent_id", mccId));

        return list;
    }
}
